# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=xvidtune
pkgver="1.0.3"
pkgrel=0
pkgdesc="A client interface to the X server video mode extension."
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="libx11-dev libxxf86vm-dev libxaw-dev libxmu-dev libxt-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/archive/individual/app/${pkgname}-${pkgver}.tar.bz2"

prepare() {
	default_prepare

	cd "$builddir"
	chmod +w config.guess config.sub
	update_config_guess && update_config_sub
}

build() {
	cd "$builddir"
	 ./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check(){
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="0f8a4fca1b544ef8f9623246fb0ece75739a0889f2e729c040cd768c595f0bbbfa3a665576369032535c34c7d55784a29b62f0d51432bf2b75d2cec619db7352  xvidtune-1.0.3.tar.bz2"
